﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D53 RID: 3411
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PrepareRogueAdventureRoomScRsp : IMessage<PrepareRogueAdventureRoomScRsp>, IMessage, IEquatable<PrepareRogueAdventureRoomScRsp>, IDeepCloneable<PrepareRogueAdventureRoomScRsp>, IBufferMessage
	{
		// Token: 0x17002B4A RID: 11082
		// (get) Token: 0x0600991C RID: 39196 RVA: 0x00199193 File Offset: 0x00197393
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PrepareRogueAdventureRoomScRsp> Parser
		{
			get
			{
				return PrepareRogueAdventureRoomScRsp._parser;
			}
		}

		// Token: 0x17002B4B RID: 11083
		// (get) Token: 0x0600991D RID: 39197 RVA: 0x0019919A File Offset: 0x0019739A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PrepareRogueAdventureRoomScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B4C RID: 11084
		// (get) Token: 0x0600991E RID: 39198 RVA: 0x001991AC File Offset: 0x001973AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PrepareRogueAdventureRoomScRsp.Descriptor;
			}
		}

		// Token: 0x0600991F RID: 39199 RVA: 0x001991B3 File Offset: 0x001973B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PrepareRogueAdventureRoomScRsp()
		{
		}

		// Token: 0x06009920 RID: 39200 RVA: 0x001991BC File Offset: 0x001973BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PrepareRogueAdventureRoomScRsp(PrepareRogueAdventureRoomScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.adventureRoomInfo_ = ((other.adventureRoomInfo_ != null) ? other.adventureRoomInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009921 RID: 39201 RVA: 0x00199208 File Offset: 0x00197408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PrepareRogueAdventureRoomScRsp Clone()
		{
			return new PrepareRogueAdventureRoomScRsp(this);
		}

		// Token: 0x17002B4D RID: 11085
		// (get) Token: 0x06009922 RID: 39202 RVA: 0x00199210 File Offset: 0x00197410
		// (set) Token: 0x06009923 RID: 39203 RVA: 0x00199218 File Offset: 0x00197418
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002B4E RID: 11086
		// (get) Token: 0x06009924 RID: 39204 RVA: 0x00199221 File Offset: 0x00197421
		// (set) Token: 0x06009925 RID: 39205 RVA: 0x00199229 File Offset: 0x00197429
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AdventureRoomInfo AdventureRoomInfo
		{
			get
			{
				return this.adventureRoomInfo_;
			}
			set
			{
				this.adventureRoomInfo_ = value;
			}
		}

		// Token: 0x06009926 RID: 39206 RVA: 0x00199232 File Offset: 0x00197432
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PrepareRogueAdventureRoomScRsp);
		}

		// Token: 0x06009927 RID: 39207 RVA: 0x00199240 File Offset: 0x00197440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PrepareRogueAdventureRoomScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.AdventureRoomInfo, other.AdventureRoomInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009928 RID: 39208 RVA: 0x00199290 File Offset: 0x00197490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.adventureRoomInfo_ != null)
			{
				num ^= this.AdventureRoomInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009929 RID: 39209 RVA: 0x001992E5 File Offset: 0x001974E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600992A RID: 39210 RVA: 0x001992ED File Offset: 0x001974ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600992B RID: 39211 RVA: 0x001992F8 File Offset: 0x001974F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.adventureRoomInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.AdventureRoomInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600992C RID: 39212 RVA: 0x00199354 File Offset: 0x00197554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.adventureRoomInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AdventureRoomInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600992D RID: 39213 RVA: 0x001993AC File Offset: 0x001975AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PrepareRogueAdventureRoomScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.adventureRoomInfo_ != null)
			{
				if (this.adventureRoomInfo_ == null)
				{
					this.AdventureRoomInfo = new AdventureRoomInfo();
				}
				this.AdventureRoomInfo.MergeFrom(other.AdventureRoomInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600992E RID: 39214 RVA: 0x00199414 File Offset: 0x00197614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600992F RID: 39215 RVA: 0x00199420 File Offset: 0x00197620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.adventureRoomInfo_ == null)
						{
							this.AdventureRoomInfo = new AdventureRoomInfo();
						}
						input.ReadMessage(this.AdventureRoomInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003AED RID: 15085
		private static readonly MessageParser<PrepareRogueAdventureRoomScRsp> _parser = new MessageParser<PrepareRogueAdventureRoomScRsp>(() => new PrepareRogueAdventureRoomScRsp());

		// Token: 0x04003AEE RID: 15086
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003AEF RID: 15087
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04003AF0 RID: 15088
		private uint retcode_;

		// Token: 0x04003AF1 RID: 15089
		public const int AdventureRoomInfoFieldNumber = 10;

		// Token: 0x04003AF2 RID: 15090
		private AdventureRoomInfo adventureRoomInfo_;
	}
}
